//
//  UIColor+CustomColor.m
//  AutoHome
//
//  Created by wqh on 15-5-12.
//  Copyright (c) 2015年 Wqh. All rights reserved.
//

#import "UIColor+CustomColor.h"

@implementation UIColor (CustomColor)
+ (UIColor *)randomColor {
    
    CGFloat hue = ( arc4random() % 256 / 256.0 );  //  0.0 to 1.0
    CGFloat saturation = ( arc4random() % 128 / 256.0 ) + 0.5;  //  0.5 to 1.0, away from white
    CGFloat brightness = ( arc4random() % 128 / 256.0 ) + 0.5;  //  0.5 to 1.0, away from black
    UIColor *color = [UIColor colorWithHue:hue saturation:saturation brightness:brightness alpha:1];
    return color;
    
}

+ (UIColor *)customGrayColor {
    return [[UIColor alloc] initWithRed:228/255.0f green:228/255.0f blue:228/255.0f alpha:1];
}

+ (UIColor *)customBlueColor {
    return [[UIColor alloc] initWithRed:56/255.0f green:105/255.0f blue:198/255.0f alpha:1];
}
@end
